package com.itany.corejava.day09;

import java.util.Arrays;

public class TestParam {


    public static void main(String... args) {


        System.out.println("Arrays.toString(args) = " + Arrays.toString(args));

        f();

        f("a");

        f("a","b","c");

        f(new String[]{"aaa","bbb","ccc"});
    }




    public static void f(String... s){
        System.out.println("TestParam.f");

        System.out.println("s = " + s);

        System.out.println(Arrays.toString(s));

        for (int i = 0; i < s.length; i++) {
            System.out.println("s[i] = " + s[i]);
        }
    }






//    public static void f(String str,String... s){
//        System.out.println("TestParam.f");
//    }





//    public static void f(int n,String... s){
//        System.out.println("TestParam.f");
//    }


//    public static void f(String... s,int n){
//        System.out.println("TestParam.f");
//    }









}
